package experiment01;

public class Car extends Vehicles {
    private int seats;

    public Car() {
    }

    public Car(String brand, String color, int seats) {
        super(brand, color);
        this.seats = seats;
    }


    public int getSeats() {
        return seats;
    }

    public void setSeats(int seats) {
        this.seats = seats;
    }

    public void showCar(){
        super.showInfo();
        System.out.println("座位："+getSeats()+"个");
    }
}
